import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'

export function getTokenCookies() {
  return Cookies.get(TokenKey)
}

export function setTokenCookies(token) {
  return Cookies.set(TokenKey, token)
}

export function removeTokenCookies() {
  return Cookies.remove(TokenKey)
}

export function getTokenSessionStorage() {
  return window.sessionStorage.getItem('token')
}

export function setTokenSessionStorage(token) {
  return window.sessionStorage.setItem('token', token)
}

export function removeTokenSessionStorage() {
  return window.sessionStorage.removeItem('token')
}
